package com.markix.configuration;

import java.util.Base64;

/**
 * @author markix
 * @date 2022/9/27 0:05
 */
public class ClientBasicTest {

    public static void main(String[] args) {
        String clientId = "client2";
        String clientSecret = "01234567890123456789012345678912";
        String str = clientId + ":" + clientSecret;
        String encode = Base64.getEncoder().encodeToString(str.getBytes());
        System.out.println(encode);
        // Y2xpZW50MjowMTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkxMg==
    }

}
